export default (_self, h) => {
  return h("el-input", {
    props: {
      value: _self.obj.value || "",
    },
    attrs: {
      disabled: !_self.obj.status,
      placeholder: _self.obj.placeholder || "这是一个输入框",
    },
    on: {
      input(e) {
        _self.obj.value = e
      },
    },
  });
};

export let inputConf = {
  status: true, // 启用状态，true启用；false停用
  elementWidth: "100%",
  elementType: "input", // 对应数据库内类型
  elementName: "输入框",// 控件左侧label内容
  value: "",
  placeholder: "请输入",
  icon: "el-icon-document",
  required: false, // 是否必填
  rules: []

};
